3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
Float32 viewPlane
Float32 halfWidthAtViewPlane
Float32 halfHeightatViewPlane
Float32 centerXOnViewPlane
Float32 centerYOnViewPlane
A view plane camera is a type of perspective camera defined in terms of an arbitrary view plane. The camera vector is normal to the view plane, and the distance from the camera location to the view plane is measured in the direction defined by the camera vector. The window on the view plane and its center are defined in the projection plane coordinate system determined by the camera's camera placement object. The view volume of a view plane camera is determined by the four rays through the camera location and through the four corners of the rectangular window on the view plane, together with the two clipping planes. The view volume is the frustum whose top is the rectangle having as its vertices the intersections of these four rays with the near clipping plane and whose base is the rectangle having as its vertices the intersections of these rays with the far clipping plane.
The center of projection of a view plane camera is the camera location point. If the center of the window defined by a view plane camera is not at the origin of the view plane, then the camera yields an off-axis view. The projection determined by a view plane camera may have one, two, or three principal vanishing points.
A view plane camera may be used to obtain a close-up image of a single object by using the approximate center and dimensions of that object to specify the size and location of the window on the view plane.
Camera placement, camera view port, camera range (optional). If a camera does not have one of these child objects, then it should be assigned the default values specified in the section on that child object.
Container (
ViewPlaneCamera (
20
15.0
15.0
18
29
)
CameraPlacement ( ... )
CameraRange ( ... )
CameraViewPort ( ... )
)
Previous | QD3D Book | Overview | Chapter Contents | Next |